---
title: "datatable get selection · RUAL Documentation"
description: "Returns the current datatable selection."
canonical: https://docs.rual.nl/block-types/state ui/state_set_datatable_selection
language: en
---

# datatable get selection

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Returns the current datatable selection.

- flow `flow`

- state key required `value` State key of the datatable to retrieve the selection from

- flow `flow`

- selection `array`

A typical wiring for [datatable get selection](https://docs.rual.nl/block-types/state%20ui/state_set_datatable_selection): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `key` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the datatable get selection block: typical wiring for datatable get selection.](https://docs.rual.nl/canvas-examples/state_set_datatable_selection.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
